package io.renren.modules.health.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import io.renren.common.service.impl.CrudServiceImpl;
import io.renren.modules.health.dao.IllnessDao;
import io.renren.modules.health.dto.IllnessDTO;
import io.renren.modules.health.entity.IllnessEntity;
import io.renren.modules.health.service.IllnessService;
import cn.hutool.core.util.StrUtil;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * 疾病维护表
 *
 * @author Mark 
 * @since 1.0.0 2024-03-24
 */
@Service
public class IllnessServiceImpl extends CrudServiceImpl<IllnessDao, IllnessEntity, IllnessDTO> implements IllnessService {

    @Override
    public QueryWrapper<IllnessEntity> getWrapper(Map<String, Object> params){
        String id = (String)params.get("id");

        QueryWrapper<IllnessEntity> wrapper = new QueryWrapper<>();
        wrapper.eq(StrUtil.isNotBlank(id), "id", id);

        return wrapper;
    }


}